﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlNewDocument.ascx.cs" Inherits="HPortal.Module.ControlNewDocument" %>
<div class="bigBox1">
    <asp:GridView ID="grvArticlelList" runat="server" AutoGenerateColumns="False" 
        SkinID="tGridview" Width="100%" BackColor="White" CellPadding="3">
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <Columns>
            <asp:BoundField DataField="Rowid" HeaderText="STT" ItemStyle-HorizontalAlign="Center" ReadOnly="True" SortExpression="Rowid">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Width="30px"/>
            </asp:BoundField>
            <asp:BoundField DataField="Title" HeaderText="Tên tài liệu" ItemStyle-HorizontalAlign="Center" >
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Justify"></ItemStyle>
            </asp:BoundField>
            <%--<asp:BoundField DataField="FileType" HeaderText="Loại tài liệu">
                <ItemStyle Width="100px" />
            </asp:BoundField>--%>
            <asp:BoundField DataField="DocumentSize" HeaderText="Kích thước(KB)" ItemStyle-HorizontalAlign="Center">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle Width="110px" HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Tải về" >
                <ItemTemplate>
                    <a href='<%#System.Configuration.ConfigurationManager.AppSettings["OsPortal.PortalCore.WebPathUserFilesUpload"].ToString() + "/" + DataBinder.Eval(Container, "DataItem.UploadFileID") + "." + DataBinder.Eval(Container, "DataItem.FileExt").ToString().Trim()%>'>
                        Download </a>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle Width="100px" HorizontalAlign="Center" />
            </asp:TemplateField>
        </Columns>     
    </asp:GridView>
</div>

